package com.bw.unit6.db

import androidx.room.Dao
import androidx.room.Insert
import androidx.room.OnConflictStrategy.REPLACE
import androidx.room.Query
import com.bw.unit6.bean.UserInfoBean

/**
 *
 * @ClassName: UserInfoDao
 * @Description: java类作用描述
 * @Author: zhangyanchao
 * @CreateDate: 2024/9/21 12:05 PM
 * @Version: 1.0
 */
@Dao
interface UserInfoDao {
    @Insert(onConflict = REPLACE)
    fun insert(userInfoBean: UserInfoBean)

    @Query("select * from user_info")
    fun getUserInfo(): UserInfoBean

    @Query("delete from user_info")
    fun delete()
}